<template>
    <div class="container">
        <div class="navbar">
            <router-link to="/home">首页</router-link>
            <router-link to="/about">关于</router-link>
        </div>
        <div class="content">
            <router-view />
        </div>
    </div>
</template>

<script>
export default {
    name: "App",
};
</script>

<style lang="scss" scoped>
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}
.container {
    width: 100%;
    height: 100%;
    padding: 20px;

    .navbar {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        width: 100%;
        height: 50px;
    }
    .content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: calc(100% - 50px);
        padding: 20px;
        border: 1px solid #2c3e50;
    }
}
</style>
